package cn.usian.controller;

import cn.usian.common.Results;
import cn.usian.service.LandlorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/landlor")
public class LandlorController {
    @Autowired
    private LandlorService landlorService;

    @RequestMapping("findLessee")
    public Results findLessee(Long id)
    {
        return landlorService.findById(id);
    }
}
